package com.example.onlinereadingsystem.demos.web.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.onlinereadingsystem.demos.web.dto.domain.Banner;
import com.example.onlinereadingsystem.demos.web.dto.request.NovelSearchDetailInfoParam;
import com.example.onlinereadingsystem.demos.web.dto.vo.NovelDetailInfoVo;
import com.example.onlinereadingsystem.demos.web.dto.vo.NovelSearchDetailInfoVo;
import com.example.onlinereadingsystem.demos.web.util.Result;

import java.util.List;

/**
 * @Description 首页业务层
 * @Author ljm
 * @Date 2024/10/12
 */
public interface IndexService {

    /**
     * @auther ljm
     * @create 2024/10/12
     * @describe 获取首页推荐小说信息
     */
    Result<List<NovelDetailInfoVo>> getIndexInfo();

    /**
     * @auther ljm
     * @create 2024/10/17
     * @describe 获取首页轮播图
     */
    Result<List<Banner>> getBannerList();

    /**
     * @auther ljm
     * @create 2024/11/14
     * @describe 小说搜索接口
     */
    Result<IPage<NovelSearchDetailInfoVo>> searchNovel(NovelSearchDetailInfoParam param);
}
